import { WidgetTypeEnum } from "@/enum/WidgetType";
import { getName } from "@/components/x6/utils";
import type { BasicSettingsConfig } from "@/components/x6/WidgetBasicSettings";
import WidgetBasicSettings from "@/components/x6/WidgetBasicSettings";

export type ImageSettingsConfig = BasicSettingsConfig;

export default class ImageSettings extends WidgetBasicSettings<ImageSettingsConfig> {
  static widgetType = WidgetTypeEnum.Image;
  initSettings = (): ImageSettingsConfig => ({
    width: 100,
    height: 100,
    name: getName("图片"),
  });
}
